package cn.topcodes.tcsf.app.domain.entity;

import cn.topcodes.tcsf.admin.commons.domain.IdEntity;
import lombok.Data;

import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Unicorn on 2017/8/2.
 */
@Data
@Table(name = "t_app_anonymous")
public class Anonymous extends IdEntity {

    public static final String PLATFORM_ANDROID = "Android";

    public static final String PLATFORM_IOS = "IOS";

    public static final String PLATFORM_WINDOWS = "Windows";

    public static final String PLATFORM_WECHAT = "Wechat";

    public static final String ACTIVE_STATUS_BACKGROUND = "Background";

    public static final String ACTIVE_STATUS_FOREGROUND = "Foreground";

    /*临时凭证*/
    private String token;

    /*app平台*/
    private String platform;

    /*app版本号*/
    private String appVersion;

    /*终端信息*/
    private String terminalInfo;

    /*活动状态*/
    private String activeStatus;

    /*访问IP*/
    private String ip;

    /*经度*/
    private Double lng;

    /*纬度*/
    private Double lat;

    /*开始访问时间*/
    private Date startAccessTime;

    /*最后访问时间*/
    private Date lastAccessTime;
}
